home *** CD-ROM | disk | FTP | other *** search
- global gRightArrow, gRightArrowLocH, gPlayFlag
-
- on InterruptHelp
- global gCurrentFrame, gPageNum, gCategoryName
- set the mouseDownScript to EMPTY
- set gPlayFlag to 0
- puppetSound(0)
- updateStage()
- if gCategoryName = "R" then
- go("Holding")
- else
- if gCategoryName = "G" then
- do("gameReturn" & gPageNum)
- else
- if (gCategoryName = "S") or (gCategoryName = "V") then
- set the locH of sprite gRightArrow to gRightArrowLocH
- go(gCurrentFrame)
- else
- if gCategoryName = "P" then
- paintStopIndex()
- set the locH of sprite gRightArrow to gRightArrowLocH
- go("Color")
- end if
- end if
- end if
- end if
- end
-
- on playHelpSnd whatsnd
- if gPlayFlag = 0 then
- puppetSound(0)
- updateStage()
- puppetSound(whatsnd)
- updateStage()
- set gPlayFlag to 1
- go(the frame)
- else
- if (gPlayFlag = 1) and (soundBusy(1) = 1) then
- go(the frame)
- else
- if (gPlayFlag = 1) and (soundBusy(1) = 0) then
- set gPlayFlag to 0
- puppetSound(0)
- updateStage()
- go(the frame + 1)
- end if
- end if
- end if
- end
-
- on writeFile textString
- set gFileObject to FileIO(mnew, "append", the pathName & "helptest.wri")
- gFileObject(mWriteString, textString & RETURN)
- gFileObject(mdispose)
- end
-
- on wait howLong
- delay(howLong)
- end
-